<?php
namespace App\Traits;

use App\Models\FakeList;

Trait Trait87_90 {

    public function fireYearList()
    {
        $data1 = [
            '烟感' => random_int(100, 1100) . "/" . '1100',
            '报警按钮' => random_int(100, 1100) . "/" . '1100',
            '液位报警器' => random_int(100, 1100) . "/" . '1100',
            '可燃气体报警器' => random_int(100, 1100) . "/" . '1100',
            '电器火灾报警器' => random_int(100, 1100) . "/" . '1100',
            '水压报警器' => random_int(100, 1100) . "/" . '1100',
        ];
        $data2 = [
            '1楼' => ['预警数' => random_int(3,9), '未处理' => 0, '已处理' => random_int(1, 3)],
            '2楼' => ['预警数' => random_int(3,9), '未处理' => 0, '已处理' => random_int(1, 3)],
            '3楼' => ['预警数' => random_int(3,9), '未处理' => 0, '已处理' => random_int(1, 3)],
            '4楼' => ['预警数' => random_int(3,9), '未处理' => 0, '已处理' => random_int(1, 3)],
            '5楼' => ['预警数' => random_int(3,9), '未处理' => 0, '已处理' => random_int(1, 3)],
            '6楼' => ['预警数' => random_int(3,9), '未处理' => 0, '已处理' => random_int(1, 3)],
            '7楼' => ['预警数' => random_int(3,9), '未处理' => 0, '已处理' => random_int(1, 3)],
            '8楼' => ['预警数' => random_int(3,9), '未处理' => 0, '已处理' => random_int(1, 3)],
        ];
        $data = [
            'equipmentStatistics' => $data1,
            'floorStatisrtics' => $data2
        ];
        $responseJson = [
            'code' => 200,
            'message' => '',
            'data' => $data
        ];
        return response()->json($responseJson);
    }


}
